<%@ page language="java" import="java.util.*,com.wcll.www.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<jsp:useBean id="pages" class="com.wcll.www.GenBean"></jsp:useBean>
<jsp:setProperty name="pages" property="*"/>
 <div style="text-align:center;font-size:12px;">
<% 
	if(request.getAttribute("gen")!=null){
 	ArrayList<GenBean> al = (ArrayList<GenBean>)request.getAttribute("gen");
 	Iterator<GenBean> ial = al.iterator();
 	%>
 	<table style="text-align:center;font-size:12px;" border="1">
 		<tr>
 			<td>编号</td>
 			<td>用户名称</td>
 			<td>密码</td>
 			<td>email</td>
 			<td>申请时间</td>
 			<td>基本操作</td>
 			</tr>
 				<% 
 	while(ial.hasNext()){
 	GenBean ab = new GenBean();
 	ab = ial.next();
 	%>
 		<tr>
 			<td><%=ab.getId()%></td>
 			<td><%=ab.getName()%></td>
 			<td><%=ab.getPassword() %></td>
 			<td><%=ab.getEmail() %></td>
 			<td><%=ab.getCreatetime() %></td>
 			<td><a href ='<%=basePath %>/servlet/GenServlet?deleid=<%=ab.getId() %>'>删除</td>
 		</tr>
 		
 	<%}	
}%>
</table>
</div>
<span style="font-size:12px;float:left;">
<%
	int p = pages.getCounts();
	for(int i =1;i<=p;i++){
	%>
	<a href="<%=basePath%>servlet/GenServlet?currage=<%=i %>">第<%=i %>页</a>
	<%}
 %>
</span>